package com.lwt.dao;

import java.util.List;
import java.util.Map;

import com.lwt.model.District;
import com.lwt.model.House;
import com.lwt.model.Street;
import com.lwt.model.Types;

public interface HouseMapper {
	/**
	 * 增加租房信息
	 * 
	 * @param house
	 * @return
	 */
	public boolean addHouse(House house);

	/**
	 * 删除租房信息
	 * 
	 * @param house
	 * @return
	 */
	public boolean deleteHouse(House house);

	/**
	 * 获取房屋信息
	 * 
	 * @param id
	 * @return
	 */
	public Map<String ,Object> getHouseById(House house);

	/**
	 * 更新租房信息
	 * 
	 * @param house
	 * @return
	 */
	public boolean updateHouse(House house);


	/**
	 * 根据区域id获取区域下所有街道
	 * 
	 * @param did
	 * @return
	 */
	public List<Street> getAllStreetByDid(Street street);



	/**
	 * 获取所有区域
	 * 
	 * @return
	 */
	public List<District> getAllDistrict();

	/**
	 * 获取所有房型
	 * 
	 * @return
	 */
	public List<Types> getAllTypes();
	/**
	 * 模糊查询--(title,price,type_id,district_id,floorage)
	 * @param house
	 * @return
	 */
	public List<Object> getLikeHouse(Map<String,Object> houseinfo);
	/**
	 * 模糊查询的结果总数
	 * @param houseinfo
	 * @return
	 */
	public int getLikeHouseCount(Map<String,Object> houseinfo);
	
}
